//
// Created by hjie on 23-6-22.
//

#include "message_router.h"

MessageRouter * MessageRouter::s_m_router = nullptr;

MessageRouter::MessageRouter()
{

}

void MessageRouter::AddLogicModule(BaseLogicModule *module)
{
    module->RegisterMsg(this);
    for (auto & data : module->m_msg_type_set)
    {
        m_module_map[data] = module;
    }
}

MessageRouter::~MessageRouter()
{

}


